package com.link2room.quintesson.feign.ironhide;

import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.ironhide.dto.result.base.L2RHotelRmtypePictureDto;
import com.link2room.ironhide.dto.result.base.L2RRoomtypeDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created by sss on 2016/11/17.
 */
@FeignClient("${spring.gateway.name}/${feign.ironhide}")
public interface RoomtypeFeignService {
    /**
     * 获取房型列表
     * @param paramMap
     * @return
     * @throws Exception
     */
    @RequestMapping(method = RequestMethod.GET,value = "/in/Roomtypes",consumes = MediaType.APPLICATION_JSON_VALUE)
    BaseResultDto<L2RRoomtypeDto> listRoomtype(@RequestParam Map<String, Object> paramMap)throws Exception;

    /**
     * 获取房型详情
     * @param paramMap
     * @return
     * @throws Exception
     */
    @RequestMapping(method = RequestMethod.GET,value = "/in/Roomtypes/Roomtype",consumes = MediaType.APPLICATION_JSON_VALUE)
    BaseResultDto<L2RRoomtypeDto> roomTypeDto(@RequestParam Map<String, Object> paramMap)throws Exception;

    /**
     * 获取房型大图
     * @param paramMap
     * @return
     * @throws Exception
     */
    @RequestMapping(method = RequestMethod.GET,value = "/in/Roomtypes/RoomtypeBigPics",consumes = MediaType.APPLICATION_JSON_VALUE)
    BaseResultDto<L2RHotelRmtypePictureDto> roomtypeBigPics(@RequestParam Map<String, Object> paramMap)throws Exception;

    /**
     * 获取房型多图
     * @param paramMap
     * @return
     * @throws Exception
     */
    @RequestMapping(method = RequestMethod.GET,value = "/in/Roomtypes/RoomtypePics",consumes = MediaType.APPLICATION_JSON_VALUE)
    BaseResultDto<L2RHotelRmtypePictureDto> roomtypePics(@RequestParam Map<String, Object> paramMap)throws Exception;
}
